package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Role;

import java.util.Map;
import java.util.Set;

public interface RoleDao {
    public Set<Role> findByUserId(Integer userId);

    public Page<Role> findPage(String queryString);

    public Role findById(int id);

    public void add(Role role);

    public void setCheckGroupAndCheckItem(Map<String, Integer> map);

    public void deleteAssociation4Permission(Integer roleId);

    public void deleteAssociation4Menu(Integer roleId);

    public void edit(Role role);

    public void deleteById(Integer roleId);

}
